package com.longxiao.mapper;

import org.apache.ibatis.annotations.Param;

import com.longxiao.entity.StudentComment;
import com.longxiao.vo.StuAveScoreVo;

public interface StudentCommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(StudentComment record);

    int insertSelective(StudentComment record);

    StudentComment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(StudentComment record);

    int updateByPrimaryKey(StudentComment record);
    
    StuAveScoreVo selectAveScore(String stuId);
    
    /**
     * 获取某堂课老师对学生的评价
     * @param tchId
     * @param stuId
     * @param classId
     * @return
     */
    StudentComment selectTchCommentInClass(@Param("tchId")String tchId,@Param("stuId")String stuId,@Param("classId")Integer classId);
    /**
     * 获取学生上次获得的评价信息
     * @param stuId
     * @return
     */
    StudentComment selectLastTchComment(String stuId);
}